﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace OT.Areas.Admin.Models
{
    public class Attempts
    {
        public int? AttemptID { get; set; }
        public int? TestID { get; set; }
        public int? UserID { get; set; }
        public Boolean? IsFinish { get; set; }
        public float Score { get; set; }
        public string user { get; set; }
        public string TestName { get; set; }
        [DataType(DataType.Date, ErrorMessage = "Please enter a valid date.dd/mm/yy"), DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}")]
        public System.DateTime? CreatedDate { get; set; }

        public ICollection<Users> Users { get; set; }
        public ICollection<Tests> Tests { get; set; }
    }
}